
<!-- Content Header (Page header) -->
<section class="content-header">
	<h1>菜单/农事记录列表</h1>
	<ol class="breadcrumb">
		<li><a href="javascript:void(0);"><i class="fa fa-dashboard"></i>
				首页</a></li>
		<li><a href="#">农事管理</a></li>
		<li class="active">菜单/农事记录列表</li>
	</ol>
</section>

<!-- Main content -->
<section class="content">
	<div class="row">
		<div class="col-xs-12">
			<div class="box box-primary">
				<div class="box-body">
					<div class="row">
						<div class="col-sm-2">
							<div class="dataTables_length">
								<label>
									<select class="form-control input-sm pageSize" style="width:auto;">
										<option>10</option>
										<option>20</option>
										<option>30</option>
										<option>30</option>
										<option>40</option>
									</select>
									记录/页
								</label>
							</div>
						</div>
						<div class="col-sm-10">
							<div class="dataTables_filter" id="searchDiv">
								<select  type="search"  title="农事类型" name="farmTypeId" class="form-control farmTypeId"></select>
								<input  type="text" placeholder="起始时间" name="startTime" readonly title="起始时间"
										class='form-control date' value=''>
								<input  type="text" placeholder="结束时间" name="endTime" readonly title="结束时间"
										class='form-control date' value=''>

								<div class="btn-group">
									<button type="button" class="btn btn-primary" data-btn-type="search">查询</button>
								</div>
							</div>
						</div>
					</div>


					<table id="check_table" class="table table-bordered table-striped table-hover" style="margin-bottom:20px;">
						<thead>
						<tr>
							<th name="id" style="display:none;">id</th>
							<th name="name">农事名称</th>
							<th name="farmType">农事类别</th>
							<th name="farmSupplies">农事用品</th>
							<th name="suppliesBrand">用品品牌</th>
							<th name="createUsername">负责人</th>
							<th name="createDateTime">创建时间</th>
							<th name="">功能选项</th>
						</tr>
						</thead>
						<tbody></tbody>
					</table>
					<div class="paging"></div>
				</div>
			</div>
		</div>
	</div>
	</div>
</section>

<script>
	$(function() {
        new Date().datepicker();
        loadSelectByClassSync("${basePath}/manager/farm/getAllFarmTypeList",null,"farmTypeId","--请选择农事类型--","id","name");

        var table=initTable("${basePath}/manager/farm/getFarmList",
            $(".content #searchDiv"),
            $(".content table"),
            $(".content .pageSize"),
            $(".content .paging"));
        var param={
            htmlUrl:"${basePath}/function/manager/farm/farmForm",
            getEntityUrl:"${basePath}/manager/farm/getFarmInfo",
            deleteEntityUrl:" ${basePath}/manager/farm/deleteFarm",
            editTitle:"编辑农事记录",
            table:$(".content table")
		};
        EditEntity(param,table.search);
    });
</script>
